<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>属性选择器</title>
		<style type="text/css">
			[name]{
				background-color: #FFE4E1;
				width: 500px;
				height: 50px;
				}
				[name=div2]{
					background-color:firebrick;
					width: 500px;
					height: 50px;
				}
		</style>
	</head>
	<body>
		<div name="div1"></div>
		<div name="div2"></div>
		<div name="div3"></div>
	</body>
</html>
